package Test;

public class TestLinkList {
    public static void main(String[] args) {
        MylinkedList mylinkedList = new MylinkedList();
        mylinkedList.addFirst(1);
        mylinkedList.addFirst(2);
        mylinkedList.addFirst(3);
        mylinkedList.addFirst(4);
        mylinkedList.addFirst(5);
        mylinkedList.display();
        System.out.println("===============");
        mylinkedList.addIndex(3,55);
        mylinkedList.addIndex(4,55);
        mylinkedList.display();
        System.out.println("==============");
        mylinkedList.remove(4);
        mylinkedList.display();
        System.out.println("===================");
        mylinkedList.removeAllKey(55);
        mylinkedList.display();
    }

}
